package com.hl.shifangzhiyu.service.Impl;

import com.hl.shifangzhiyu.mapper.DayiMapper;
import com.hl.shifangzhiyu.pojo.Dayi;
import com.hl.shifangzhiyu.service.DayiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class DayiServiceImpl implements DayiService {

    @Autowired
    private DayiMapper  dayiMapper;
    @Override
    public int insert(Dayi dayi) {
        return dayiMapper.insert(dayi);
    }

    @Override
    public List<Dayi> selectAll() {
        return dayiMapper.selectAll();
    }

    @Override
    public List<Dayi> selectDafu() {
        return dayiMapper.selectDafu();
    }

}
